<template>
  <ve-funnel :data="chartData" :settings="chartSettings" />
</template>

<script>
import { getFunnelData } from '@/api/statistics'

export default {
  data() {
    return {
      chartSettings: {},
      chartData: {
        columns: ['name', 'value'],
        rows: []
      }
    }
  },
  mounted() {
    getFunnelData().then(res => {
      this.chartData.rows = res.data
    })
  }
}
</script>
